home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gSeger, gPaperLeft, gPulledLength
- set gPaperLeft to gPaperLeft - (gPulledLength / 100.0)
- if gPaperLeft < 0 then
- set gPaperLeft to 0
- end if
- set the text of field "papper_kvar" to "Remaining length: " & gPaperLeft & " m."
- if gPaperLeft <= 0 then
- startTimer()
- repeat while the timer < 45
- end repeat
- else
- draFramNytt()
- end if
- if gPaperLeft <= 0 then
- set gSeger to 1
- end if
- cursor(-1)
- set the text of field "hurry" to " "
- play frame "sendGame"
- end
-